package cn.wilson.hrm.vo;

//因为登录之后要把这些字段设置到session中，从session获取也是获取的这些字段，所以我们封装一个对象，
// 就不用把把整个employee设置到session中了
public class LoginInfo {
    //用户id
    private Long userId;
    //用户名
    private String username;
    //机构id
    private Long tenantId;
    //机构名称
    private String tenantName;

    public LoginInfo() {
    }

    public LoginInfo(Long userId, String username, Long tenantId, String tenantName) {
        this.userId = userId;
        this.username = username;
        this.tenantId = tenantId;
        this.tenantName = tenantName;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public String getTenantName() {
        return tenantName;
    }

    public void setTenantName(String tenantName) {
        this.tenantName = tenantName;
    }
}
